package com.zyong.design.pattern.iterator.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: Product
 * @author: zyong
 * @create: 2024-06-01 08:46
 */
public class Product {
    private String name;
    private double price;

    public Product(String name, double price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public double getPrice() {
        return price;
    }

    @Override
    public String toString() {
        return "Product{name=" + name + ", price=" + price + "}";
    }
}
